Skip to content

feat: add SIP PUBLISH method support (RFC 3903) - #588

Open
ixxhar wants to merge 2 commits into
flutter-webrtc:mainfrom
ixxhar:feat/publish-rfc-3903
Open

feat: add SIP PUBLISH method support (RFC 3903)#588
ixxhar wants to merge 2 commits into
flutter-webrtc:mainfrom
ixxhar:feat/publish-rfc-3903

Conversation

@ixxhar

@ixxhar ixxhar commented Jul 2, 2026

Copy link
Copy Markdown

Adds support for SIP PUBLISH (RFC 3903), enabling the UA to publish presence/status information using PIDF XML (RFC 3863).

  • New Publish class in lib/src/publish.dart — lightweight PUBLISH sender with:
    • SIP-ETag tracking for conditional publication
    • Proper handling of 412 Conditional Request Failed
    • Proper handling of 423 Interval Too Brief
    • EventSucceeded / EventCallFailed event emission
  • Added PUBLISH to SipMethod enum and ALLOWED_METHODS
  • Added publish() method to UA and SIPUAHelper classes
  • Exported new module in lib/sip_ua.dart

Testing

  • Tested against FreeSWITCH
  • Verified successful PUBLISH with 2xx response and ETag extraction
  • Verified 412/423 error handling

ixxhar added 2 commits July 2, 2026 11:58
  Add PUBLISH support for presence/status publication via PIDF XML.
  Includes SIP-ETag tracking for conditional publication, handling of
  412 Conditional Request Failed and 423 Interval Too Brief responses.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant